package com.happycat.mobile.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 领取礼物dto
 */
@Data
public class UserGetFreeGiftSaveDto {

	@ApiModelProperty(value="领取的礼物id", required = true)
    @NotNull
	private Long giftId;

	@ApiModelProperty(value="礼物来源: 背包，聊天室", required = true)
    @NotEmpty
	private String source;

	@ApiModelProperty(value="礼物数量，默认1")
	private Integer giftNumber = 1;

	//TODO 后续去掉
	@ApiModelProperty(value="领取人主键id，正常应该从系统上下文获取，但目前用户登录后未设置上下文，所以先前端传入吧, 后续去掉该参数", required = true)
    @NotNull
	private Long receiverId;
	
}